import fetch from 'utils/fetch';

//设备管理
export function deviceAll(deviceFormData) {
  return fetch({
	url:  '/api/admin/PlatPos/findPlatPos',
  method: 'post',
  headers: {'Content-type': 'application/json;charset=UTF-8'},
  data:deviceFormData
  })
}

//设备分页
export function devicePage(deviceFormData) {
  return fetch({
	url:  '/api/admin/PlatPos/findPlatPos',
  method: 'post',
  headers: {'Content-type': 'application/json;charset=UTF-8'},
  params:deviceFormData
  })
}

//设备修改
export function deviceModify(deviceModifyData) {
  return fetch({
	url:  '/api/admin/PlatPos/updatePlatPos',
  method: 'post',
  data:deviceModifyData
  })
}

//设备添加
export function deviceAdd(deviceAddData) {
  return fetch({
	url:  '/api/admin/PlatPos/insertPlatPos',
  method: 'post',
  data:deviceAddData
  })
}